package com.qs.product.enums;

import lombok.Getter;

/**
 * @Desc: 商品枚举
 * @author: jianfeng
 * @Time: 2019/9/17 17:11
 */
@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(1, "商品不存在"),
    PRODUCT_STOCK_ERROR(2, "库存有误");

    private Integer code;

    private String message;


    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
